/*****************************************************************************/
/**
*
* @file main.c
*
*
* <pre>
* MODIFICATION HISTORY:
*
* Ver   Who    Date   	Changes
* ----- ---- ---------- -------------------------------------------------------
* 0.01  abu  05/31/2019 Created
* </pre>
*
*------------------------------------------------------------------------------
* Author: abu	E-mail:	abu_liu@aliyun.com
*				Blog:	https://blog.csdn.net/ClamerKorallen
*				Gitee:	https://gitee.com/abu_liu
*------------------------------------------------------------------------------
*
******************************************************************************/


/***************************** Include Files *********************************/
#include <stdio.h>
#include "platform.h"
#include "xil_printf.h"

#include "uinterrupt.h"
#include "uiicps.h"
#include "debug.h"
//#include "adau1761.h"

/************************** Constant Definitions *****************************/

int main()
{
    init_platform();
    DEBUG("=================Device on===================\n\r");

	//========================================================
	uScuGicInit();
	uIicPsInit(&uiic0ps, UIIC0_DEV_ID);

	//while(1){
	Adau1761_Init();
	while(XIicPs_BusIsBusy(&uiic0ps) == TRUE)
	{
		DEBUG_POS();
	}
	//	}
	DEBUG("adau1761 initialization finished\n\r");
	//========================================================

	//========================================================

	//========================================================

    cleanup_platform();
    return 0;
}
